<?php
session_start();
include('dbconnect.php');
$sql = "DELETE
		FROM modeles
		WHERE mod_id NOT IN
		(SELECT mac_mod_id FROM machines GROUP BY mac_mod_id)";
if ( $result = $db->query($sql) )
	echo $db->lignes().' enregistement(s) supprimé(s)';
?>
